﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="AuthAPP.DWZ.Index" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
    <title>济南民生警务互联网数据管理平台</title>
    <link href="themes/default/style.css" rel="stylesheet" type="text/css" media="screen" />
    <link href="themes/css/core.css" rel="stylesheet" type="text/css" media="screen" />
    <link href="themes/css/print.css" rel="stylesheet" type="text/css" media="print" />
    <link href="uploadify/css/uploadify.css" rel="stylesheet" type="text/css" media="screen" />
    <!--[if IE]>
<link href="themes/css/ieHack.css" rel="stylesheet" type="text/css" media="screen"/>
<![endif]-->
    <script type="text/javascript" src="../Scripts/alert/ymPrompt.js"></script>
    <link rel="stylesheet" type="text/css" href="../Scripts/alert/skin/qq/ymPrompt.css" />
    <script src="js/speedup.js" type="text/javascript"></script>
    <script src="js/jquery-1.7.2.js" type="text/javascript"></script>
    <script src="js/jquery.cookie.js" type="text/javascript"></script>
    <script src="js/jquery.validate.js" type="text/javascript"></script>
    <script src="js/jquery.bgiframe.js" type="text/javascript"></script>
    <script src="xheditor/xheditor-1.1.14-zh-cn.min.js" type="text/javascript"></script>
    <!--  上传文件 和加载swf文件
    <script src="uploadify/scripts/swfobject.js" type="text/javascript"></script>
    <script src="uploadify/scripts/jquery.uploadify.v2.1.0.js" type="text/javascript"></script>
    -->
    <!-- svg图表  supports Firefox 3.0+, Safari 3.0+, Chrome 5.0+, Opera 9.5+ and Internet Explorer 6.0+ -->
    <%--    <script type="text/javascript" src="chart/raphael.js"></script>
    <script type="text/javascript" src="chart/g.raphael.js"></script>
    <script type="text/javascript" src="chart/g.bar.js"></script>
    <script type="text/javascript" src="chart/g.line.js"></script>
    <script type="text/javascript" src="chart/g.pie.js"></script>
    <script type="text/javascript" src="chart/g.dot.js"></script>--%>
    <script src="js/dwz.core.js" type="text/javascript"></script>
    <script src="js/dwz.util.date.js" type="text/javascript"></script>
    <script src="js/dwz.validate.method.js" type="text/javascript"></script>
    <script src="js/dwz.regional.zh.js" type="text/javascript"></script>
    <script src="js/dwz.accordion.js" type="text/javascript"></script>
    <script src="js/dwz.barDrag.js" type="text/javascript"></script>
    <script src="js/dwz.drag.js" type="text/javascript"></script>
    <script src="js/dwz.ui.js" type="text/javascript"></script>
    <script src="js/dwz.theme.js" type="text/javascript"></script>
    <script src="js/dwz.switchEnv.js" type="text/javascript"></script>
    <script src="js/dwz.alertMsg.js" type="text/javascript"></script>
    <script src="js/dwz.contextmenu.js" type="text/javascript"></script>
    <script src="js/dwz.navTab.js" type="text/javascript"></script>
    <script src="js/dwz.tab.js" type="text/javascript"></script>
    <script src="js/dwz.resize.js" type="text/javascript"></script>
    <script src="js/dwz.dialog.js" type="text/javascript"></script>
    <script src="js/dwz.dialogDrag.js" type="text/javascript"></script>
    <script src="js/dwz.sortDrag.js" type="text/javascript"></script>
    <script src="js/dwz.cssTable.js" type="text/javascript"></script>
    <script src="js/dwz.stable.js" type="text/javascript"></script>
    <script src="js/dwz.taskBar.js" type="text/javascript"></script>
    <script src="js/dwz.ajax.js" type="text/javascript"></script>
    <script src="js/dwz.pagination.js" type="text/javascript"></script>
    <script src="js/dwz.database.js" type="text/javascript"></script>
    <script src="js/dwz.datepicker.js" type="text/javascript"></script>
    <script src="js/dwz.effects.js" type="text/javascript"></script>
    <script src="js/dwz.panel.js" type="text/javascript"></script>
    <script src="js/dwz.checkbox.js" type="text/javascript"></script>
    <script src="js/dwz.history.js" type="text/javascript"></script>
    <script src="js/dwz.combox.js" type="text/javascript"></script>
    <script src="js/dwz.print.js" type="text/javascript"></script>
    <!--************* 新网格添加 *****************-->
    <!--<link href="/Scripts/jQuery-1.9.0.js" rel="stylesheet" type="text/css" media="screen" />-->
    <script src="../Scripts/thickbox.js" type="text/javascript"></script>
    <link href="../Styles/thickbox.css" type="text/css" rel="Stylesheet" />
    <%--<script src="../Scripts/pop/pop_win.js" type="text/javascript"></script>--%>
    <script src="../Scripts/pop/popup.js" type="text/javascript"></script>
    <script type="text/javascript">

        function MakeTree(a) {
            var menuString = "";
            var i = 0;
            if (a.children.length > 0) {
                $.each(a.children, function (j, b) {
                    i++;
                    if (b.children.length > 0) {
                        if(b.isHref)
                            menuString += " <li><a href=\"/" + b.url + "\" target=\"navTab\"    external='true' rel=\"main" + i.toString() + j.toString() + "\"><img alt='' src='/images/menu/fileSmall.gif' />  " + b.name + "</a>";
                        else
                        menuString += " <li><a href=\"#\"><img alt='' src='/images/menu/fileSmall.gif' />  " + b.name + "</a>";
                        menuString += "		<ul>";
                        menuString += MakeTree(b);
                        menuString += " </ul>";
                        menuString += "	</li>";
                    }
                    else {
                        var imgUrl = "/images/menu/treenodeSmall.gif";
                        if (b.image.length > 0) {
                            imgUrl = b.image;
                        }
                        menuString += "<li><a href=\"/" + b.url + "\" target=\"navTab\"    external='true' rel=\"main" + i.toString() + j.toString() + "\"><img alt='' src='" + imgUrl + "' />  " + b.name + "</a>";
                        menuString += "</li>";
                    }
                });

                return menuString;
            }
            return menuString;
        }
        $(function () {
            displayLeftMenu();
        });
        function displayLeftMenu() {
            var randomStr = parseInt(10000 * Math.random()).toString();
            $.ajax({
                method: "post",
                dataType: "json",
                url: "../AjaxServer/EntIndexLeftMenu.ashx",
                data: { "randoms": randomStr },
                success: function (message) {
                    var jsonData = message;
                    var menuHtmlString = "";
                    var rel = 0;
                    $.each(jsonData, function (i, a) {
                        if (i === 0) {
                            if (a.image.toString() == "") {
                                menuHtmlString += "<div class=\"accordionHeader\"><h2 ><img alt='' src='/images/menu/commonSmall.gif' />  " + a.name + "</h2></div>";
                                menuHtmlString += "<div class=\"accordionContent\" ><ul class=\"tree treeFolder\">";
                            }
                            else {
                                menuHtmlString += "<div class=\"accordionHeader\"><h2 ><img alt='' src='" + a.image + "' />   " + a.name + "</h2></div>";
                                menuHtmlString += "<div class=\"accordionContent\" ><ul class=\"tree treeFolder\">";
                            }
                        }
                        else {
                            if (a.image.toString() == "") {
                                menuHtmlString += "<div class=\"accordionHeader\"><h2><img alt='' src='/images/menu/commonSmall.gif' />  " + a.name + "</h2></div>";

                            }
                            else {
                                menuHtmlString += "<div class=\"accordionHeader\"><h2><img alt='' src='" + a.image + "' />  " + a.name + "</h2></div>";
                            }
                            menuHtmlString += "<div class=\"accordionContent\" style='height:172px;display:none;'><ul class=\"tree treeFolder\">";
                        }
                        menuHtmlString += MakeTree(a);
                        menuHtmlString += "</ul></div>";

                    });
                    $("#leftMenuDiv").append(menuHtmlString);
                    // alert(menuHtmlString);
                    initEnv();
                },
                error: function (XMLHttpRequest, textStatus, errorThrown) {
                    alert(textStatus);
                }
            });
        }
        $().ready(function () {
            $("#imgRes").bind("click", function () {
                tb_show("密码修改", "../user/UserEditPassword.aspx?keepThis=true&TB_iframe=true&height=400&width=800", false);

            });
            $.ajax({
                async: false,
                type: "post",
                data: { "id": "", "action": "GetModelBySessionID" },
                dataType: "json",
                url: "../AjaxServer/user/AppUserHandler.ashx",
                success: function (data, textStatus) {
                    $("#form1 label").each(function (i, n) {
                        //遍历指定form表单中的所有label标签
                        var fieldId = $(n).attr("id");
                        var prefix = fieldId.substr(0, 3).toLocaleLowerCase();
                        $("#" + fieldId).html(data[fieldId.substr(3)]);
                    });

                },
                error: function (XMLHttpRequest, textStatus, errorThrown) {
                    ymPrompt.errorInfo('操作失败！', null, null, null, null);
                }
            });
        });
    </script>
    <!---tree 中各项加载完毕，在调用tree.js 来初始化树形--->
    <script src="js/dwz.tree.js" type="text/javascript"></script>
    <!--************* 新网格添加 *****************-->
    <!--
<script src="bin/dwz.min.js" type="text/javascript"></script>
-->
    <script src="js/dwz.regional.zh.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $.ajaxSettings.global = false;
            DWZ.init("dwz.frag.xml", {

                loginUrl: "login_dialog.html", loginTitle: "登录", // 弹出登录对话框
                //		loginUrl:"login.html",	// 跳到登录页面
                statusCode: { ok: 200, error: 300, timeout: 301 }, //【可选】
                pageInfo: { pageNum: "pageNum", numPerPage: "numPerPage", orderField: "orderField", orderDirection: "orderDirection" }, //【可选】
                debug: false, // 调试模式 【true|false】
                callback: function () {

                    $("#themeList").theme({ themeBase: "themes" }); // themeBase 相对于index页面的主题base路径
                }
            });
        });
        function logOut() {
            ymPrompt.confirmInfo('确定要退出系统？', null, null, "提示", function (tp) {
                if (tp == "ok") {
                    window.location.href = "/logout.aspx";
                } else {
                    return false;
                }
            });
        }
    </script>
</head>
<body scroll="no">
    <form id="form1" runat="server">
    <div id="layout">
        <div id="header">
            <div class="headerNav">
                <a class="logo" href="http://sdwangge.com">标志</a>
                <ul class="nav">
                </ul>
                <ul class="themeList" id="themeList" style="display: none;">
                    <li theme="default">
                        <div class="selected">
                            蓝色</div>
                    </li>
                    <li theme="green">
                        <div>
                            绿色</div>
                    </li>
                    <li theme="purple">
                        <div>
                            紫色</div>
                    </li>
                    <li theme="silver">
                        <div>
                            银色</div>
                    </li>
                    <li theme="azure">
                        <div>
                            天蓝</div>
                    </li>
                </ul>
                <ul class="nav2" id="nav2">
                    <%--                    <li>
                        <img alt="" src="../Images/personalRes.gif" id="imgRes" runat="server" />
                    </li>--%>
                    <li>
                        <%--<asp:ImageButton ID="imgUser_PWD" ImageUrl="../Images/user_set.gif" runat="server"
                            OnClick="imgUser_PWD_Click" />--%>
                        <img alt="" src="../Images/user_set.gif" id="imgRes" runat="server" title="" style="cursor: pointer" />
                    </li>
                    <li>
                        <img alt="" src="../Images/logout.gif" onclick="logOut()" />
                    </li>
                </ul>
            </div>
        </div>
        <div id="leftside">
            <div id="sidebar_s">
                <div class="collapse">
                    <div class="toggleCollapse">
                        <div>
                        </div>
                    </div>
                </div>
            </div>
            <div id="sidebar">
                <div class="toggleCollapse">
                    <h2>
                        主菜单</h2>
                    <div>
                        收缩</div>
                </div>
                <div id="leftMenuDiv" class="accordion" fillspace="sidebar">
                </div>
            </div>
        </div>
        <div id="container">
            <div id="navTab" class="tabsPage">
                <div class="tabsPageHeader">
                    <div class="tabsPageHeaderContent">
                        <!-- 显示左右控制时添加 class="tabsPageHeaderMargin" -->
                        <ul class="navTab-tab">
                            <li tabid="main" class="main"><a href="javascript:;"><span><span class="home_icon">我的主页</span></span></a></li>
                        </ul>
                    </div>
                    <div class="tabsLeft">
                        left</div>
                    <!-- 禁用只需要添加一个样式 class="tabsLeft tabsLeftDisabled" -->
                    <div class="tabsRight">
                        right</div>
                    <!-- 禁用只需要添加一个样式 class="tabsRight tabsRightDisabled" -->
                    <div class="tabsMore">
                        more</div>
                </div>
                <ul class="tabsMoreList">
                    <li><a href="javascript:;">主页</a></li>
                </ul>
                <div class="navTab-panel tabsPageContent layoutBox">
                    <div class="page unitBox">
                        <div class="userContent">
                            <div class="homepage">
                                <img src="themes/default/images/defaultimg.jpg" alt="默认欢迎页面" class="defaultimg" />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div id="footer">
        Copyright &copy; 2013 <a href="http://sdwangge.com" target="dialog">山东新网格信息技术有限公司</a>
    </div>
    </form>
    <%--<div id="notice">
        你有一条未签收的消息
    </div>
    <script type="text/javascript">

        window.onload = function () {
            function fnBuffer(obj, target) {
                if (obj.iTimer) {
                    clearInterval(obj.iTimer);
                }
                obj.iTimer = setInterval(function () {
                    var iSpeed = (target - obj.offsetTop) / 8;
                    iSpeed = iSpeed > 0 ? Math.ceil(iSpeed) : Math.floor(iSpeed);
                    if (obj.offsetTop == target) {
                        clearInterval(obj.iTimer);
                    }
                    else {
                        obj.style.top = obj.offsetTop + iSpeed + 'px';
                    }
                }, 30);
            }
            var notice = document.getElementById('notice');
            var top = window.screen.availHeight;
            setTimeout(function () {
                fnBuffer(notice, top - 210);
                setTimeout(function () {
                    fnBuffer(notice, top);
                }, 3000)
            }, 1500);
        }
    </script>--%>
</body>
</html>
